From: Felix Fietkau Date: Tue, 1 Jul 2025 17:50:45 +0000 (+0200) Subject: ubusd: make txq_len field signed X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=27839f854a58d9dbc85efa1b5cd79f253880c701;p=project%2Fubus.git ubusd: make txq_len field signed When enqueueing a partial message, the length is initially set to a negative value. Fixes part of the enqueue queue length check. Signed-off-by: Felix Fietkau --- diff --git a/ubusd.h b/ubusd.h index f43b936..1913c66 100644 --- a/ubusd.h +++ b/ubusd.h @@ -62,7 +62,7 @@ struct ubus_client { struct list_head cmd_queue; struct list_head tx_queue; unsigned int txq_ofs; - unsigned int txq_len; + ssize_t txq_len; struct ubus_msg_buf *pending_msg; struct ubus_msg_buf *retmsg;